package com.soul.souldao.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.soul.souldao.domain.Doctor;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @ClassName DoctorMapper
 * @Description
 * @Author Dark Chocolate 2069057986@qq.com
 * @Date 2024/10/31 20:05
 * @Version JDK 17
 */
@Mapper
public interface DoctorMapper extends BaseMapper<Doctor> {
    @Insert("insert into doctor (user_name, password, role_name) values (#{userName}, #{password}, #{roleName})")
    boolean save(Doctor doctor);
}
